!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=62)}({62:function(e,t,n){n(63),e.exports=n(64)},63:function(e,t){jQuery((function(e){if(void 0!==window.pltVars){var t=e(".plt-copy-short-url"),n=new ClipboardJS(".plt-copy-short-url"),r=window.pltVars,o=r.copied,i=r.browserNoSupportCopying;ClipboardJS.isSupported()?t.click((function(e){return e.preventDefault()})):t.hide(),e(".plt-links-to button").click((function(){return e("#cws-links-to").focus()})),n.on("success",(function(t){var n=e(t.trigger);n.text(o),setTimeout((function(){return n.text(n.data("original-text"))}),4e3)})),n.on("error",(function(n){e(n.trigger).text(i),setTimeout((function(){return t.hide()}),4e3)}))}})),jQuery((function(e){if(void 0!==window.pltVars){var t=e("#plt-quick-add"),n=t.find("form:first"),r=e("#plt-quick-add-save"),o=e("#plt-quick-add-publish"),i=e('a[href$="post_type=page&page=plt-add-page-link"], a[href$="#new-page-link"]'),l=t.find(".messages"),u=t.find(".short-url-message"),a=t.find('[name="title"]'),c=t.find('[name="url"]'),p=t.find('[name="slug"]'),d=t.find('[name="plt_nonce"]').val(),f=p.prop("placeholder"),s=window.pltVars.fancyUrls,g=function(e){return function(){return t.dialog(e)}},v=g("isOpen"),b=g("open"),h=g("close"),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w(e).replace(/-$/,"")},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/\s+/g,"-").replace(/-{2,}/g,"-").replace(/[^a-z0-9-]/,"").replace(/^-/,"")},k=function(t,n){var r=function(t){var n=e("
".concat(t,"
"));return l.append(n),n}(t);return setTimeout((function(){return r.fadeOut()}),n),r},m=function(){var e=y(a.val()),t=w(p.val());p.prop("placeholder",e.length?e:f),p.val(t)},_=function(e){return function(t){t.preventDefault(),e()}},x=_((function(){return p.val(y(p.val()))})),O=_((function(){return e=p.prop("placeholder").length>16&&!p.val().length,u.toggle(e);var e})),j=function(){a.val(""),c.val(""),p.val(""),p.prop("placeholder",f),S()},S=function(){return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.prop("disabled",!e),r.prop("disabled",!e)}(a.val().length&&c.val().length)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.publish,r=void 0===n||n,o=a.val(),i=c.val(),l=p.val()?p.val():y(o);e.post(ajaxurl,{action:"plt_quick_add",plt_title:o,plt_url:i,plt_slug:l,plt_publish:r?1:0,plt_nonce:d},(function(e){var t=e.data.message;j(),a.focus(),k(t,5e3)}))},P=_((function(){return v()?h():b()})),q=_((function(){return C({publish:!1})})),T=_((function(){return C({publish:!0})}));t.dialog({title:"Add Page Link",dialogClass:"wp-dialog plt-ui-dialog",autoOpen:!1,draggable:!1,width:"auto",modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){return e(".ui-widget-overlay").bind("click",h)},create:function(){e(".plt-ui-dialog .ui-dialog-titlebar-close").addClass("ui-button"),e(".plt-ui-dialog").css({position:"fixed"})}});var M=function(){v()&&t.dialog("option","position",{my:"center",at:"center",of:window})};e(window).scroll(M).resize(M),s&&(a.keyup(m),a.keyup(O),p.keyup(m),p.keyup(O),n.change(x)),i.click(P),r.click(q),o.click(T),n.submit(T),a.keyup(S),c.keyup(S),n.change(S),j()}}))},64:function(e,t,n){e.exports=n.p+"quick-add.css"}});{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}